package sort;

/**
 *
 * @author BDSHADOW
 */
public class sortStudyProgram {
    public static void main(String[] args){
        long[] time = new long[10];
        int next = 0;
        for (int k = 0; k < 10; k++) {
            long startTime = System.nanoTime();
            
            ///////////////////////////////////////////////////////////////////
            Sorter sorter = new Sorter(new HugeArraySort());
            sorter.sort(args[0], args[1]);
            ///////////////////////////////////////////////////////////////////
           
            long endTime = System.nanoTime();
            time[next++] = endTime-startTime;
        }
        long average = 0;
        for (int i = 0; i < 10; i++) {
            average += time[i];
        }
        System.out.println(average/10);
    }
}
